<template>
  <ul>
    <li>编号：{{$route.query.id}}</li>
    <li>标题：{{$route.query.title}}</li>
    <li>内容：{{$route.query.content}}</li>
  </ul>
</template>

<script>
  export default {
    name:'Detail',
    mounted() {
      console.log('Detail挂载了')
    },
    beforeUpdate(){
      console.log('Detail更新了')
    }
  }
</script>

<style scoped>
  li {
    color: green;
    font-weight: 900;
  }
</style>